<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>移动端适配</title>
  <link rel="stylesheet" href="./css/normalize.css" />
  <!-- 先引入css文件 放到自己css文件的上面 -->
  <link rel="stylesheet" href="./css/swiper-bundle.min.css" />
  <link rel="stylesheet" href="./css/index.css" />
</head>
<body>
  <section class="warp">
    <!-- 头部区域 -->
    <header class="header">工作宝</header> 
    <nav class="nav">
      <a href="#" class="item">
        <img src="./icons/icon1.png" alt=""/>
        <span>HR面试</span> 
      </a>
      <a href="#" class="item">
        <img src="./icons/icon2.png" alt=""/>
        <span>笔试</span> 
      </a>
      <a href="#" class="item">
        <img src="./icons/icon3.png" alt=""/>
        <span>技术面试</span> 
      </a>
      <a href="#" class="item">
        <img src="./icons/icon4.png" alt=""/>
        <span>模拟面试</span> 
      </a>
      <a href="#" class="item">
        <img src="./icons/icon5.png" alt=""/>
        <span>面试技巧</span> 
      </a>
      <a href="#" class="item">
        <img src="./icons/icon6.png" alt=""/>
        <span>薪资查询</span> 
      </a>
    </nav>
    <!-- go模块 -->
    <section class="go">
      <img src="./images/go.png" />
    </section>
  </section>  
  <!-- 就业指导模块 -->
  <section class="content">
    <!-- 头部 -->
    <div class="con-hd">
      <span>
        <img src="./icons/i2.png" alt="" />
        就业指导
      </span>
      <a href="#" class="more">更多>></a>
    </div>
    <!-- 旋转木马轮播图 -->
    <div class="get_job_focus">
      <div class="swiper-container get_job_fo">
        <div class="swiper-wrapper">
          <div class="swiper-slide">
            <a href="#"><img src="./images/pic.png"/></a>
            <p>老师教你应对面试技巧</p>  
          </div>
          <div class="swiper-slide">
            <a href="#"><img src="./images/ldh.jpg"/></a>
            <p>老师教你应对面试技巧</p>  
          </div>
          <div class="swiper-slide">
            <a href="#"><img src="./images/3.jpg"/></a>
            <p>老师教你应对面试技巧</p>  
          </div>
        </div>
      </div>  
      <!-- Add Arrows -->
      <div class="swiper-button-next"></div>
      <div class="swiper-button-prev"></div>
  </div>
  </section>
  <!-- 充电学习模块 -->
  <section class="content">
    <!-- 头部 -->
    <div class="con-hd">
      <span>
        <img src="./icons/i1.png" alt="" />
        充电学习
      </span>
      <a href="#" class="more">更多>></a>
    </div>
    <!-- 充电学习轮播图 -->
    <div class="study">
      <!-- Swiper -->
      <div class="swiper-container study_fo">
        <div class="swiper-wrapper">
          <div class="swiper-slide">
            <img src="./images/pic1.png" alt="" />
              <h5>说低调英语，告别中式英语</h5>
              <p>156人学习</p>
          </div>
          <div class="swiper-slide">
            <img src="./images/pic2.png" alt="" />
              <h5>说低调英语，告别中式英语</h5>
              <p>156人学习</p>
          </div>
          <div class="swiper-slide">
            <img src="./images/pic1.png" alt="" />
              <h5>说低调英语，告别中式英语</h5>
              <p>156人学习</p>
          </div>
          <div class="swiper-slide">
            <img src="./images/pic1.png" alt="" />
              <h5>说低调英语，告别中式英语</h5>
              <p>156人学习</p>
          </div>
        </div>
        <!-- Add Pagination -->
        <div class="swiper2-pagination"></div>
      </div>
    </div>  
  </section>  
  <div class="null"></div>  
  <footer class="footer">
    <a href="#">
      <img src="./icons/home.png" />
      <p>首页</p>
    </a>
    <a href="#">
      <img src="./icons/ms.png" />
      <p>模拟面试</p>
    </a>
    <a href="#">
      <img src="./icons/net.png" />
      <p>技术面试</p>
    </a>
    <a href="#">
      <img src="./icons/user.png" />
      <p>我的首页</p>
    </a>
  </footer>
  <script src="./js/flexible.js"></script>
  <script src="./js/swiper-bundle.min.js"></script>
  <script>
    // 配置轮播图
    // 沙箱函数
    // 第一个轮播图
    (function (){
      var swiper = new Swiper('.get_job_fo', {
        // 能够看到slider的个数
        slidesPerView: 2,
        // 每个slider之间的距离
        spaceBetween: 30,
	      centeredSlides: true,
	      loop: true,
        // 添加左右箭头
        navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
        },
      });
    })();

    // 第二个轮播图
    (function (){
      var swiper = new Swiper('.study_fo', {
        slidesPerView: 2.5,
        spaceBetween: 20,
      })
    })()
    
  </script>
</body>
</html>